package main

import (
	"encoding/json"
	"fmt"
)

type Per struct {
	Name     string
	Age      int
	HouseIds [2]int
	CarIds   []int
	Labels   map[string]string
}

func main() {
	p1 := Per{
		Name:     "yuyu",
		Age:      16,
		HouseIds: [2]int{33, 22},
		CarIds:   []int{911, 918},
		Labels:   map[string]string{"k1": "v1", "k2": "v2"},
	}

	data, _ := json.Marshal(p1)
	for k, v := range data {
		fmt.Printf("%v: %v", k, v)
	}
}
